define(function (require, exports, module) {
    var sTpl = require("modules/cube-basic-info/index.html");



    var vueComponent = Vue.extend({
        template: sTpl,
        props: ['curCubeId'],
        data: function () {
            return {
                list: [],
                tableData: [
                ]
            }
        },
        methods: {

        },
        created: function () {
            //实际中应该发异步
            var map = require("config/api.js");

            var basicInfo = map.cube_info(this.curCubeId) || {};

            for (x in basicInfo) {
                this.tableData.push({
                    key: x,
                    value: basicInfo[x]
                });
            }

            console.log(this.tableData);

        }
    });


    Vue.component('m-cube-basic-info', vueComponent); //都全局注册 同时exports

    module.exports = vueComponent;
});